package team.tunan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import team.tunan.dto.EmployeePageDto;
import team.tunan.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 员工表 服务类
 * </p>
 *
 * @author sqx
 * @since 2023-12-24
 */
public interface IEmployeeService extends IService<Employee> {

    int insertEmployee(Employee employee);

    int updateEmployee(Employee employee);

    int deleteEmployee(String id);

    Page<Employee> selectPage(EmployeePageDto employeePageDto);

    Boolean findByUserName(String userName);


    Employee login(Employee employee);

    Employee selectByEmployeeId(Integer id);
}
